$(function(){
	var xData = ["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","43","44","45","43","44","45","43","44","45","43","44","45","43","44","45"];
		var seriesData = [600,200,360,100,1000,200,360,100,1000,200,360,100,1000,200,360,100,1000,200,360,100,1000,200,360,100,1000,200,360,100,1000,200,360,100,1000,200,360,100,1000,200,360,100,1000,200,360,100,1000,360,100,10000,360,100,1000,360,100,1000,360,100,1000,360,100,1000];
        //指定图标的配置和数据
        var option = {
            title:{
                text:'ECharts'
            },
            tooltip:{
            	
            	
            },
            legend:{
                data:['用户来源']
            },
            xAxis:{
                data:xData
            },
            yAxis:{
        

            },
            series:[{
                name:'访问量',
                type:'line',
                data:seriesData
            }]
        };
      
         var myChart = echarts.init(document.getElementById('chartmain'));

        //使用制定的配置项和数据显示图表
        myChart.setOption(option);
        
        
        
       /* //饼图
         var option = {
            title:{
                text:'ECharts'
            },            
            series:[{
                name:'访问量',
                type:'pie',    
                radius:'100%', 
                data:[
                    {value:500,name:'Android'},
                    {value:200,name:'IOS'},
                    {value:360,name:'PC'},
                    {value:100,name:'Ohter'},
                    {value:1000,name:'java'}
                ]
            }]
        };
        
        
        
          //初始化echarts实例
        var myChart = echarts.init(document.getElementById('chartmain'));

        //使用制定的配置项和数据显示图表
        myChart.setOption(option);*/
        
})
